cmake_minimum_required(VERSION 3.0)
project(ioucee)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

find_package(Qt5Widgets CONFIG REQUIRED)

add_executable(ioucee
    src/lab.cpp
    src/state.cpp
    src/gui/autobuy.cpp
    src/gui/event_filters.cpp
    src/gui/finder.cpp
    src/gui/power_orb.cpp
    src/gui/product.cpp
    src/gui/settings.cpp
    src/gui/upgrade.cpp
    src/gui/window.cpp
    src/main.cpp
    icons.qrc
)

set_property(TARGET ioucee PROPERTY CXX_STANDARD 17)
target_include_directories(ioucee PRIVATE src)
target_link_libraries(ioucee Qt5::Widgets)
target_compile_options(ioucee PRIVATE $<$<CONFIG:DEBUG>: -Wall -Wpedantic -Wextra -Wshadow -Wconversion -fsanitize=address -fsanitize=undefined -fno-sanitize-recover -fstack-protector -pg>)
target_link_options(ioucee PRIVATE $<$<CONFIG:DEBUG>: -fsanitize=undefined -fsanitize=address -fno-sanitize-recover -pg> )
